# -*- coding: UTF-8 -*-

from knn import kNN
from matplotlib import pyplot
import matplotlib
from numpy import *

if __name__ == '__main__':
	return_mat, label_vector = kNN.file2matrix()
	print(return_mat)
	print(label_vector)

	print()

	norm_date_set, ranges, min_val = kNN.auto_norm(return_mat)
	print(norm_date_set)
	print(ranges)
	print(min_val)
	#
	# fig = pyplot.figure()
	# ax = fig.add_subplot(111)
	# ax.scatter(return_mat[:, 1], return_mat[:, 2], 15.0 * array(label_vector), 15.0 * array(label_vector))
	# pyplot.show()
